home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / fclose.man < prev    next >
Encoding:
Text File  |  1989-02-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. FCLOSE                C Library Procedures                 FCLOSE
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      fclose, fflush - close or flush a stream
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<ssttddiioo..hh>>
  13.  
  14.      ffcclloossee((ssttrreeaamm))
  15.      FFIILLEE **ssttrreeaamm;;
  16.  
  17.      fffflluusshh((ssttrreeaamm))
  18.      FFIILLEE **ssttrreeaamm;;
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      _F_c_l_o_s_e causes any buffers for the named _s_t_r_e_a_m to be emp-
  22.      tied, and the file to be closed.  Buffers allocated by the
  23.      standard input/output system are freed.
  24.  
  25.      _F_c_l_o_s_e is performed automatically upon calling _e_x_i_t(3).
  26.  
  27.      _F_f_l_u_s_h causes any buffered data for the named output _s_t_r_e_a_m
  28.      to be written to that file.  The stream remains open.
  29.  
  30. SSEEEE AALLSSOO
  31.      close(2), fopen(3S), setbuf(3S)
  32.  
  33. DDIIAAGGNNOOSSTTIICCSS
  34.      These routines return EEOOFF if _s_t_r_e_a_m is not associated with
  35.      an output file, or if buffered data cannot be transferred to
  36.      that file.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.